<ion-view>

    <!--头部分-->
    <ion-header-bar class="bar-positive" align-title="center">

        <h1 class="title">悦联盟</h1>

        <!--<div class="buttons">-->

            <!--<button class="button button-icon icon ion-more" ng-click="shareUnions()"></button>-->

        <!--</div>-->

    </ion-header-bar>

    <!--内容部分-->
    <ion-content ng-controller="mainController">

      <!--加载图标-->
      <!--<ion-spinner icon="bubbles" class="spinner-balanced" ng-if="isok != 'ok'"-->
                   <!--style="margin-left: 40%;margin-top: 40%;width: 300px;height: 300px"></ion-spinner>-->

      <ion-refresher pulling-text="下拉刷新..." on-refresh="reloadData()"></ion-refresher>

      <!--<img src="img/vip_02.png">-->
        <!--&lt;!&ndash;上半部分基本的信息&ndash;&gt;-->
        <div id="basic-info">
            <div class="row">
                <div class="col label">联盟商户:</div>
                <div class="col"><label >{{data.name}}</label></div>
                <div class="col label">联盟代码:</div>
                <div class="col"><label >{{data.code}}</label></div>
            </div>

            <div class="row">
                <div class="col label">手&nbsp&nbsp机&nbsp&nbsp号:</div>
                <div class="col"><label >{{data.mobilePhone}}</label></div>
                <div class="col label">联盟等级:</div>
                <div class="col"><label >{{data.rebeatName}}</label></div>
            </div>

            <div class="row">
                <div class="col label">VIP&nbsp等&nbsp级:</div>
                <div class="col">{{data.levelName}}</div>
                <div class="col label">有&nbsp&nbsp效&nbsp&nbsp期:</div>
                <div class="col">{{data.ableTime}}</div>
            </div>

        </div>

        <!--下半部分订单和返利信息-->
        <div id="order-info">

            <div class="row">
                <div class="col">
                    今日订单量:
                    <p >{{data.todayOrder}}笔</p>
                </div>

                <div class="col">
                    今日返利:
                    <p >{{data.todayAccount}}元</p>
                </div>
            </div>

            <div class="row">
                <div class="col">
                    昨日订单量:
                    <p >{{data.yestodayOrder}}笔</p>
                </div>

                <div class="col">
                    昨日返利:
                    <p >{{data.yestodayAccount}}元</p>
                </div>
            </div>

            <div class="row">
                <div class="col">
                    总订单量:
                    <p >{{data.totalOrder}}笔</p>
                </div>

                <div class="col">
                    用户数量:
                    <p >{{data.customTotal}}个</p>
                </div>
            </div>

            <div class="row">
                <div class="col totalAccount">
                  <div>

                    总返利:
                    <p >{{data.rebeatTotal}}元</p>
                </div>

                </div>

                <div class="col child-panel" >
                    <div class="col">冻结金额:
                        <label >{{data.blockTotal}}元</label></div>

                    <div class="col">已提返利:
                        <label >{{data.drawedTotal}}元</label></div>

                    <div class="col">可提返利:
                        <label >{{data.drawingTotal}}元</label></div>

                </div>
            </div>

          <!--分享链接和退出当前账户-->
          <div class="row">
            <div class="col-50"><button class="button button-positive" id="share_btn"  ng-click="share()">分享链接</button></div>
            <div class="col-50"><button class="button button-assertive" id="quit_btn" ng-click="exitUser()">退出账户</button></div>
          </div>

        </div>

        <br>
        <br>
      <br>
      <br>
      <br>


    </ion-content>


</ion-view>
